﻿#ifndef STASHMANAGECONTROLLEROBJECT_H
#define STASHMANAGECONTROLLEROBJECT_H
#include<QObject>
#include<QPointer>
#include"StashManageModelObject.h"
class StashManageModelObject;
class StashManageControllerObject:public QObject
{
	Q_OBJECT
public:
	StashManageControllerObject(QObject* parent = nullptr);
	virtual~StashManageControllerObject();
public:
	StashManageModelObject* model()const;
	template <typename T> T* model() { return (static_cast<T*>(m_model)); };
public:
	virtual void setModel(StashManageModelObject* model);
	virtual void copyModel(StashManageModelObject* model);
signals://信号
	void sendMessageBoxInfoSignals(const QString& title,
		const QString& text);
private:
	void messageBoxInfo(const QString& title,
		const QString& text);
protected:
	StashManageModelObject* m_model=nullptr;
};

#endif // !StashManageControllerObjects
